import request from '@/utils/request'

export function login(id, password) {
  const data = {
    id,
    password
  }
  return request({
    url: '/login',
    method: 'post',
    data
  })
}

export function logout() {
  return request({
    url: '/auth/adminlogout',
    method: 'get'
  })
}
